package cn.itsource.rpms.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Setted extends BaseDomain{

    private String custormer;

    private Long mainId;

    private Date settedTime = new Date();

    private BigDecimal reAmount;

    private BigDecimal payAmount;

    private String address;

    private Pay pay;

    private Integer carStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getSettedTime() {
        return settedTime;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setSettedTime(Date settedTime) {
        this.settedTime = settedTime;
    }

    @Override
    public String toString() {
        return "Setted{" +
                "custormer='" + custormer + '\'' +
                ", settedTime=" + settedTime +
                ", reAmount=" + reAmount +
                ", payAmount=" + payAmount +
                ", address='" + address + '\'' +
                '}';
    }
}
